(function(){
	var url = GM.RootScript+"UserPhoto/uploadForm";
    var a= {
        exec:function(editor){
    		jQuery('#dialogidsj56image_btn').trigger('click');
			editorPluginCallback = function(data){
				editor.insertHtml("<img src='"+GM.rootUrl+"img/"+data.pic_link+"'/>");
			}
        }
    },
    b='sj56image';
    CKEDITOR.plugins.add(b,{
        init:function(editor){
            editor.addCommand(b,a);
            editor.ui.addButton('sj56image',{
                label:'图片',
                icon: this.path + 'icons.gif',
                command:b
            });
        }
    });
})();